import forumAxios from '../utils/request'

const BASE_URL = '/userArticle'

export async function getUserArticleRelationship(articleId) {
    const resp = await forumAxios.get(BASE_URL + '/getUserArticleRelationship', {
        params: {
            articleId: articleId
        }
    })
    console.log(resp);

    return resp
}

export async function updateUserArticleRelationship(articleId, relationship) {
    const resp = await forumAxios.get(BASE_URL + '/updateUserArticleRelationship', {
        params: {
            articleId: articleId,
            relationship: relationship
        }
    })
    console.log(resp);

    return resp
}